﻿using System;
namespace Maticsoft.Model
{
	/// <summary>
	/// T_User:实体类(属性说明自动提取数据库字段的描述信息)
	/// </summary>
	[Serializable]
	public partial class T_User
	{
		public T_User()
		{}
		#region Model
		private string _id= System.Guid.NewGuid().ToString();
		private string _name;
		private string _password= "456456";
		private string _illness="--";
		private int? _old;
		private string _sex;
		private string _photo;
		private string _tel;
		private int? _height=0;
		private string _weight="--";
		private DateTime _behosptial= DateTime.Now;
		private string _berth= "0";
		private long _offices=6;
		private string _email;
		private long _bed=new Random().Next(10000,99999);
		private string _doctorname;
		private string _doctorid;
		private string _monitor;

        private string time_str;
        public string Time_Str
        {
            set
            {
                time_str = value;
                _behosptial = DateTime.ParseExact(time_str, "yyyy-MM-dd HH:mm", null);
            }
            get
            {
                time_str = _behosptial.ToString("yyyy-MM-dd HH:mm");
                return time_str;
            }
        }
		/// <summary>
		/// 
		/// </summary>
		public string Id
		{
			set{ _id=value;}
			get{return _id;}
		}
		/// <summary>
		/// 
		/// </summary>
		public string Name
		{
			set{ _name=value;}
			get{return _name;}
		}
		/// <summary>
		/// 
		/// </summary>
		public string Password
		{
			set{ _password=value;}
			get{return _password;}
		}
		/// <summary>
		/// 
		/// </summary>
		public string Illness
		{
			set{ _illness=value;}
			get{return _illness;}
		}
		/// <summary>
		/// 
		/// </summary>
		public int? Old
		{
			set{ _old=value;}
			get{return _old;}
		}
		/// <summary>
		/// 
		/// </summary>
		public string Sex
		{
			set{ _sex=value;}
			get{return _sex;}
		}
		/// <summary>
		/// 
		/// </summary>
		public string Photo
		{
			set{ _photo=value;}
			get{return _photo;}
		}
		/// <summary>
		/// 
		/// </summary>
		public string Tel
		{
			set{ _tel=value;}
			get{return _tel;}
		}
		/// <summary>
		/// 
		/// </summary>
		public int? Height
		{
			set{ _height=value;}
			get{return _height;}
		}
		/// <summary>
		/// 
		/// </summary>
		public string Weight
		{
			set{ _weight=value;}
			get{return _weight;}
		}
		/// <summary>
		/// 
		/// </summary>
		public DateTime BeHosptial
		{
			set{ _behosptial=value;}
			get{return _behosptial;}
		}
		/// <summary>
		/// 
		/// </summary>
		public string Berth
		{
			set{ _berth=value;}
			get{return _berth;}
		}
		/// <summary>
		/// 
		/// </summary>
		public long Offices
		{
			set{ _offices=value;}
			get{return _offices;}
		}
		/// <summary>
		/// 
		/// </summary>
		public string Email
		{
			set{ _email=value;}
			get{return _email;}
		}
		/// <summary>
		/// 
		/// </summary>
		public long Bed
		{
			set{ _bed=value;}
			get{return _bed;}
		}
		/// <summary>
		/// 
		/// </summary>
		public string DoctorName
		{
			set{ _doctorname=value;}
			get{return _doctorname;}
		}
		/// <summary>
		/// 
		/// </summary>
		public string DoctorId
		{
			set{ _doctorid=value;}
			get{return _doctorid;}
		}
		/// <summary>
		/// 
		/// </summary>
		public string Monitor
		{
			set{ _monitor=value;}
			get{return _monitor;}
		}
		#endregion Model

	}
}

